<template>
  <div class="theme-active-text-color content">
    <div class="process">
      <el-steps :space="200" :active="complete" finish-status="success">
        <el-step title="采购部"></el-step>
        <el-step title="成本部"></el-step>
        <el-step title="商务部"></el-step>
        <el-step title="总助"></el-step>
        <el-step title="副总"></el-step>
        <el-step title="总经理"></el-step>
        <el-step title="完成"></el-step>
      </el-steps>
    </div>
    
  </div>
</template>

<script>
import { applyDetailApi } from '@/api';

export default {
  name: "",
  components: {},
  data() {
    return {
      id:'',
      complete:0
    };
  },
  created() {
    this.id = this.$route.query.id;
    this.searchProcess()
  },
  methods: {
    async searchProcess(){
      let res = await applyDetailApi({
        id:this.id
      })
      if(res){
        console.log(res)
        this.complete = res.data[0].complete
      }
    }
     
  }
};
</script>
<style lang="less" scoped>
.content{
  width: 100%;
  height: 100%;
  background: #fff;
  box-sizing: border-box;
  font-size: .1rem;
  padding: 100px;
  .process{
    width: 100%;
  }
}

</style>